package events
{
	import flash.events.Event;
	
	/**
	 */
	public class GuiEvent extends Event
	{
		// 
		static public const CHANGE_TAB:String = "changeTab";
		static public const CAMERA_SCROLL:String = "cameraScroll";
		static public const CAMERA_SCROLL_TO:String = "cameraScrollTo";
		static public const CAMERA_ZOOM:String = "cameraZoom";
		static public const CAMERA_ZOOM_TO:String = "cameraZoomTo";
		
		// 
		private var _data:Object;
		
		public function GuiEvent(type:String, data:Object)
		{
			super(type, true);
			_data = data;
		
		}
		
		public function get data():Object
		{
			return _data;
		}
		
		override public function clone():Event 
		{
			return new GuiEvent(type, data);
		}
	
	}

}